package com.xuecheng.basic.api;

import com.xuecheng.commons.model.vo.CategoryVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * feign远程调用
 * @author 七安
 */
@FeignClient("xc-basic-service")
public interface BasicClient {

    /**
     * 根据id查询分类名称
     * @param id id
     * @return 结果
     */
    @GetMapping("/category/{id}")
    ResponseResult<CategoryVo> findSortName(@PathVariable("id") String id);
}
